<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- <script>
        var skills = [
            {
                catg_id: 1,
                catg_name: "原画",
                subsets: [
                    {
                        id: 1,
                        name: "场景",
                        disabled: false,
                        get_fcous: false,
                    }
                ]
            },
            {
                catg_id: 2,
                catg_name: "UI",
                subsets: []
                        
            }
        ];

        var skills_p = [];
        skills.forEach((item) => {
            let nodes = [];
            if (item.subsets.length != 0) {
                item.subsets.forEach(ele => {
                    nodes.push(ele.name);
                });
                let nodes_str = nodes.join();
                skills_p.push({
                    catg_id: item.catg_id,
                    nodes: nodes_str,
                });
            }
            
        })
        var param = {
            type: 2,
            skills: skills_p
        };
        console.log(JSON.stringify(skills_p));
    </script> -->

    <script>
        var xhr = new XMLHttpRequest();
        xhr.open("get", "http://123.207.32.32:9001/banner", true);
        xhr.send(null);
        xhr.onreadystatechange = function () {
            if (xhr.readyState === 4 && xhr.status === 200) {
                var result = xhr.responseText;
                console.log(JSON.parse(result));
            }
        }
    </script>
    
</body>
</html>